package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;

import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();


    Map<String, Object> listIndexStock(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    //分页查询商品信息
    Map<String, Object> getPageGoodsList(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    //添加或修改商品信息
    ServiceVO saveGoods(Goods goods);

    //删除商品信息
    ServiceVO deleteGoods(Integer goodsId);

    //分页查询无库存商品信息
    Map<String, Object> getPageNoInQuGoods(Integer page, Integer rows, String nameOrCode);

    //分页查询有库存商品信息
    Map<String, Object> getPageHasInQuGoods(Integer page, Integer rows, String nameOrCode);

    //添加商品期初库存
    ServiceVO saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    //删除商品库存
    ServiceVO deleteStock(Integer goodsId);

    //查询库存报警商品信息
    Map<String, Object> getListAlarm();
}
